package com.zhongli.devplatform.po.sys;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadKnowledgePoint")
@Data
@TableName(value = "read_knowledge_point")
public class ReadKnowledgePointPO {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 对应章节信息
     */
    @TableField(value = "chapter_id")
    @ApiModelProperty(value="对应章节信息")
    private Integer chapterId;

    /*@TableField(exist = false)
    private ReadChapterPO chapterPO;*/

    /**
     * 知识点名称
     */
    @TableField(value = "knowledge_name")
    @ApiModelProperty(value="知识点名称")
    private String knowledgeName;

    /**
     * 知识点标题
     */
    @TableField(value = "knowledge_title")
    @ApiModelProperty(value="知识点标题")
    private String knowledgeTitle;

    /**
     * 知识点数量
     */
    @TableField(value = "count")
    @ApiModelProperty(value="知识点数量")
    private Integer count;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private Integer createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    @TableField(value = "update_user_id",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Integer updateUserId;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Date updateTime;


    @TableField("video_ids")
    @ApiModelProperty("知识点视频ids")
    private String videoIds;

    @TableField(exist = false)
    public String tempVideoUrl;

}
